/*
 * 信息模型接口
 * @Description: jishupu-admin-template
 * @Author: 技术铺<jishupu@qq.com>
 * @Date: 2021-11-15
 */

import request from '@/utils/request'

/**
  * 列表
  * @param {Object} params
  * @param {Object} extendConfig
  * @returns  new Promise
  */
export function index(params, extendConfig) {
  return request.get('/v1/info-model', { params, ...extendConfig })
}

/**
  * 添加
  * @param {Object} params
  * @param {Object} extendConfig
  * @returns  new Promise
  */
export function store(params, extendConfig) {
  return request.post('/v1/info-model', params, extendConfig)
}

/**
 * 获取信息栏目分类的模型选项配置
 * @param {Object} extendConfig
 * @returns  new Promise
 */
export function getInfoCategoryModelConfig(extendConfig) {
  return request.get('/v1/info-model/info-category-model-config', extendConfig)
}
